#ifndef FRAME_CAMERA_H
#define FRAME_CAMERA_H

#include <QFrame>
#include <QImage>
#include <QPoint>
#include <QMouseEvent>
#include "imagecamera.h"

namespace Ui {
class Frame_Camera;
}

class Frame_Camera : public QFrame
{
    Q_OBJECT

public:
    explicit Frame_Camera(QWidget *parent = 0);
    ~Frame_Camera();

    void showUi();

private slots:
    void loadCamera();

    void showCameraImg(QImage img);

    void on_pushButton_resume_clicked();

    void on_pushButton_pause_clicked();

    void on_pushButton_close_clicked();

    virtual void mousePressEvent(QMouseEvent *event);
    virtual void mouseMoveEvent(QMouseEvent *event);

private:
    Ui::Frame_Camera *ui;
    QPoint dragPosition;
    ImageCamera* camera;
};

#endif // FRAME_CAMERA_H
